function fnLaunchWin(url, title, width, height)
{
    alert("hi");
    var fullurl = fnGetDomain() + url;
    alert(fullurl);
    var style = "width=" + width + ",height=" + height;
    style = style + ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes,left=0,top=100,screenX=0,screenY=100";
    window.open(fullurl, title, style);
}
function fnLaunchModalDialog(url, title, width, height) {
    alert("hi");
    var fullurl = fnGetDomain() + url;
    alert(fullurl);
    var style = "width=" + width + ",height=" + height;
    style = style + ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes,left=0,top=100,screenX=0,screenY=100";
    window.showModalDialog(fullurl, title, style);
}
function fnGetDomain() {
    var url = window.location.href;
    var arr = url.split("/");
    var domain = arr[0] + "//" + arr[2];
    return domain;
}

